DFNetUtil Class Reference
#include <DFNetUtil.h>
List of all members.
Detailed Description
Provides a set of helper functions to simplify the network coding process.
Constructor & Destructor Documentation
Member Function Documentation
SWRESULT DFNetUtil::getServerFromString |
( |
LPCTSTR |
strAddr, |
|
|
ULONG & |
lServer |
|
) |
[static] |
|
|
Retrieves the proper address for the IN_ADDR structure (ULONG) from either an IPv4 address or Domain Name.
- Returns:
- SWResult defining the success of the function
- Return values:
-
| SW_OK | values In lServer are usable |
| SW_FAIL | String was not valid, call WSAGetLastError for more info |
|
SWRESULT DFNetUtil::getStringFromWinsockError |
( |
int |
iErr, |
|
|
CAtlString & |
strMsg |
|
) |
[static] |
|
|
Retrieves a human readable description of the passed in WinSock error and returns it in strMsg
- Returns:
- SWResult defining the success of the function
- Return values:
-
| SW_OK | The value was found in this function |
| SW_Fail | The value could not be found and strMsg = "Uknown Error Occured" |
|
The documentation for this class was generated from the following file: